package com.goktech.entity;

import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

@Component("Book")
public class Book implements Serializable {

    private Integer id;
    private Integer typeId;
    private String bName;
    private String bAuthor;
    private String bIntroduction;
    private Integer accout;
    private Integer yuliang;
    private String beizhu;
    private Date rukushijian;
    private String photo;

    public Book() {
    }

    public Book(Integer id, Integer typeId, String bName, String bAuthor, String bIntroduction, Integer accout, Integer yuliang, String beizhu, Date rukushijian, String photo) {
        this.id = id;
        this.typeId = typeId;
        this.bName = bName;
        this.bAuthor = bAuthor;
        this.bIntroduction = bIntroduction;
        this.accout = accout;
        this.yuliang = yuliang;
        this.beizhu = beizhu;
        this.rukushijian = rukushijian;
        this.photo = photo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getbName() {
        return bName;
    }

    public void setBName(String bName) {
        this.bName = bName;
    }

    public String getBAuthor() {
        return bAuthor;
    }

    public void setBAuthor(String bAuthor) {
        this.bAuthor = bAuthor;
    }

    public String getBIntroduction() {
        return bIntroduction;
    }

    public void setBIntroduction(String bIntroduction) {
        this.bIntroduction = bIntroduction;
    }

    public Integer getAccout() {
        return accout;
    }

    public void setAccout(Integer accout) {
        this.accout = accout;
    }

    public Integer getYuliang() {
        return yuliang;
    }

    public void setYuliang(Integer yuliang) {
        this.yuliang = yuliang;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    public Date getRukushijian() {
        return rukushijian;
    }

    public void setRukushijian(Date rukushijian) {
        this.rukushijian = rukushijian;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", typeId=" + typeId +
                ", bName='" + bName + '\'' +
                ", bAuthor='" + bAuthor + '\'' +
                ", bIntroduction='" + bIntroduction + '\'' +
                ", accout=" + accout +
                ", yuliang=" + yuliang +
                ", beizhu='" + beizhu + '\'' +
                ", rukushijian=" + rukushijian +
                ", photo='" + photo + '\'' +
                '}';
    }
}
